package edu.unc.comp410.colemangeer.model;


public class OrderDiscount implements IDiscount {
	
	private DiscountRule rule;
	
	public OrderDiscount(DiscountRule rule){
		this.rule = rule;
	}
	public double getDiscountedPrice(double price){
		return rule.applyDiscount(price);
	}
}
